package com.jeff.tianti.cms.service;

import com.jeff.tianti.cms.dto.font.QuestionsAnswersTo;
import com.jeff.tianti.cms.entity.QuestionsAnswers;
import com.jeff.tianti.cms.dao.QuestionsAnswersDao;
import com.jeff.tianti.cms.dto.QuestionsAnswersQueryDTO;
import com.jeff.tianti.cms.entity.Resume;
import com.jeff.tianti.common.service.CommonService;
import com.jeff.tianti.common.entity.PageModel;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * @author xujianfang
 * @desc QuestionsAnswersService�� 
 * @date 2019-07-04
 */
@Service
public class QuestionsAnswersService extends CommonService< QuestionsAnswers,String >  {

    @Autowired
    private QuestionsAnswersDao questionsAnswersDao;

    @Autowired
    public void setQuestionsAnswersDao(QuestionsAnswersDao questionsAnswersDao){
      super.setCommonDao(questionsAnswersDao);
    }

    public PageModel<QuestionsAnswers> queryQuestionsAnswersPage(QuestionsAnswersQueryDTO questionsAnswersQueryDTO){
           return this.questionsAnswersDao.queryQuestionsAnswersPage(questionsAnswersQueryDTO);
    }

    public List<QuestionsAnswers> queryQuestionsAnswersList(QuestionsAnswersQueryDTO questionsAnswersQueryDTO){
           return this.questionsAnswersDao.queryQuestionsAnswersList(questionsAnswersQueryDTO);
    }


    public PageModel<QuestionsAnswers> queryQuestionsAnswersPages(QuestionsAnswersQueryDTO dto) {
        return this.questionsAnswersDao.queryQuestionsAnswersPages(dto);
    }

    public PageModel<QuestionsAnswers> findAllByTo(QuestionsAnswersTo questionsAnswersTo) {
        return this.questionsAnswersDao.findAllByTo(questionsAnswersTo);
    }

    public Page<QuestionsAnswers> findByUidAndTypeIsAuditFlag(String uid, Pageable pageable) {
        return this.questionsAnswersDao.findByUidAndTypeIsAuditFlag(uid,pageable);
    }
}